<!DOCTYPE html>
<!-- saved from url=(0180)http//1071.vshop.weimob.com/cmd/confirmOrder.html?wechatid=osXr8jmJXplWOznb-Ap2XwaLL3o4&v=bbbfdac324e1277e36edacca4edd5323&payType=0&itemList=12711%7E12732&cart=1&t=1385372912.682 -->
<html lang="zh-CN"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>订单确认</title>
                                 <!--用户支付页面-->
<meta charset="UTF-8">

<meta name="viewport" content=" initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="format-detection" content="telephone=no">
<link href="/css/ordersubmit/style.css" rel="stylesheet">
<link href="/css/ordersubmit/templates.css" rel="stylesheet">
    <script type="text/javascript" src="/js/index/index.js"></script>
    <link href = "/css/index.css" rel="stylesheet" type="text/css"/>
    <script type="text/javascript" src="/js/jquery-1.8.3.min.js"></script>
 
</head>
<body>
<span id="orderId" hidden>[[${orderId}]]</span>
<div class="lay_header" style="height: 60px">

    <div class="lay_page page_order current" id="page_order">
        <div class="lay_page_wrap">
            <ul class="mod_addresslist ui_mt15 ui_mb15">
                <li class="address_item arrow" id="toAddrList" evttag="toAddrList">
                    <div class="address_detail">
                        <span class="siteId" hidden>[[${siteId}]]</span>
                        <p evttag="toAddrList">
                            收件人：请输入地址信息<span class="ui_color_weak"></span>
                            <span id="goaddlist" style="display: none" addr="addressList"></span>
                        </p>
                        <p evttag="toAddrList" class="address qb_fs_m"></p>
                    </div>
                </li>
            </ul>
            <script type="text/javascript">
                  //用户地址
                function getSite(){
                     let url = "/doFindUserSiteBySiteId";
                     let params = {"siteId":$(".siteId").html()};
                     $.post(url,params,function(result){
                         if(result.status==200){
                             let data = result.data;
                             $(".address_detail p").html("收件人："+data.receiverName+data.receiverPhone);
                             // $(".address_detail .ui_color_weak").html(data.receiverPhone);
                             $(".address_detail .address").html(data.country+data.provice+data.city+data.detailSite);
                         }
                     })
                };
                getSite();
            </script>
            <div class="mod_cell ui_p10">
                <div class="qb_flex">
                    <div class="mod_select select_block flex_box">
                        <select data-price="500" evttag="sendType" id="select_shipFee">
                            
                                    <option value="0" mtype="1012" ptype="0">包邮: ￥0.00元</option>
                                
                                    <option value="600" mtype="1013" ptype="0">顺风快递: ￥6.00元</option>
									
									<option value="700" mtype="1014" ptype="0">EMS: ￥8.00元</option>
                                
                        </select>
                    </div>
                </div>
            </div>
            <div class="mod_cell ui_p10">
                <div class="qb_flex">
                    <div class="mod_select select_block flex_box">
                        <select evttag="changePay">
                            <option value="-1">请选择支付方式</option>
                            
                            <option value="1014">支付宝</option>
							<option value="1015">微信支付</option>
							<option value="1016">银联支付</option>                            
                            <option value="1061">货到付款</option>
                            
                            
                        </select>
                    </div>
                </div>
            </div>
            <div class="mod_cell_hr"></div>
            <div class="mod_cell">
                <div class="mod_celltitle">请确认订单详情</div>
                <div class="ui_color_weak qb_mb10"></div>
                <ul class="mod_list">

                </ul>
                <div class="qb_flex qb_mb10" id="coupon-node" index="0"></div>
                <div class="qb_flex qb_mb10" id="promote-node" index="0"></div>
                <div class="mod_cell_hr"></div>
                <div class="ui_mb10">
                    <p class="ui_align_right qb_none" id="free-div"></p>
                    <p class="ui_align_right qb_none" id="dealoff-div">优惠金额：<strong class="mod_color_strong"><span id="dealoff-price"></span></strong></p>
                    <p class="ui_align_right">应付金额：<strong class="mod_color_strong"><span id="total-price">¥</span></strong></p>
                </div>
            </div>
            <div class="ui_gap" style="padding-bottom: 10%;">
                <a id="submit-order" evttag="submitOrder" class="mod_btn btn_strong btn_block" onclick="orderPay()">提交订单</a>
                <script type="text/javascript">
                    function orderPay(){
                        let url="/doSaveOrderPay";
                        let params={"orderId":$("#orderId").html(),
                                    "siteId":$(".siteId").html()}
                        $.post(url,params,function(result){
                            if(result.status==200){
                                window.location.href="/order/order_finish?orderId="+$("#orderId").html();
                            }
                        })
                    };
                    // $(function(){
                    //     $("#submit-order").attr("href","/doSaveOrderPay?orderId="+[[${orderId}]]);
                    // })
                </script>
            </div>
            <div class="qb_gap">
                <form action="http//weigou.qq.com/o2ov1/cn/cmdy/confirmOrder.xhtml" method="get" name="cartForm">
                    <input type="hidden" value="10" id="payType" name="payType">
                    <input type="hidden" value="2F702C6C0000000004010000299520A7-颜色:030蓝 Blue|尺码:175/92A/XL-1" id="itemList" name="itemList">
                    <input type="hidden" value="6693" id="adid" name="adid">
                    <input type="hidden" value="7-1-5" id="prePageId" name="prePageId">
                    <input type="hidden" value="" id="gcfa" name="gcfa">
                    <input type="hidden" value="" id="icfa" name="icfa">
                    <input type="hidden" value="1814851631" id="bid" name="bid">
                    <input type="hidden" value="" id="ifb" name="ifb">
                </form>
            </div>
        </div>
    </div>
    <div class="qb_quick_tip qb_none" id="bubble"></div>
    <div class="mod_dialog qb_none" id="message-notice">
        <div class="dialog_mask"></div>
        <div class="dialog_main qb_br qb_tac">
            <div class="dialog_bd" id="notice-content"></div>
            <div class="dialog_ft qb_flex"><a href="javascript:void(0);" class="flex_box" id="notice-cancel">取消</a><a href="javascript:void(0);" class="flex_box" id="notice-sure">确定</a></div>
        </div>
    </div>
    <script type="text/template" id="Script1">
        <div class="mod_select select_block flex_box">
            <select id="Select1" evttag="{#evtTag#}">{#optList#}</select>
        </div>
    </script>
    <script type="text/template" id="Script2">
        <li index="{#index#}">{#name#} <span class="mod_color_weak">{#mobile#}</span>{#selected#}<div class="address">{#address#}</div>
        </li>
    </script>
    <script type="text/template" id="Script3">
        <div class="qb_tar qb_mb10">货到付款优惠（减免零头）：<strong class="mod_color_strong qb_fs_s">&yen;{#free#}</strong></div>
        <div class="qb_tar">包裹小计：<strong class="mod_color_strong">&yen;{#pkgTotal#}</strong></div>
    </script>
<!-- 底部 -->
<div class="foot">
    <a href="/index" class="current" id="home">首页</a>
    <a href="#" id="sech">猜你喜欢</a>
    <a href="/ordercart" id="gwc">购物车</a>
    <a href="/aboutme" id="member">我的</a>
</div>


    <script type="text/javascript">
        var shareData = {"send2Friend":{"content":"优惠惊喜享不停","img":"http//1071.vshop.weimob.com/statics/images/share_logo.jpg","link":"http//1071.vshop.weimob.com","title":"【微商城】推荐给你看看，关注即可成为会员享受特权"},"share2Friend":{"img":"http//1071.vshop.weimob.com/statics/images/share_logo.jpg","link":"http//1071.vshop.weimob.com","title":"【微商城】关注我吧！更多会员特权等着你！"},"share2qqBlog":{"content":"我关注了【微商城】！拥有N多会员特权，一起来体验吧！","link":"http//1071.vshop.weimob.com"}};
        !function () { function c() { var a = WeixinJSBridge; a.on("menu:share:appmessage", e), a.on("menu:share:weibo", f), a.on("menu:share:timeline", g), a.invoke("getNetworkType", {}, d) } function d(a) { var b, c; switch (a.err_msg) { case "network_type:wwan": b = 2e3; break; case "network_type:edge": b = 3e3; break; case "network_type:wifi": b = 4e3 } c = new Image, c.onerror = c.onload = function () { c = null } } function e() { var a = window.shareData.send2Friend, b = h(a); a.content = b ? b.content : a.content, a.img = b && b.img ? b.img : a.img, WeixinJSBridge.invoke("sendAppMessage", { img_url: a.img, img_width: "640", img_height: "640", link: a.link, desc: a.content, title: a.title }, function () { }) } function f() { var b = window.shareData.share2qqBlog; WeixinJSBridge.invoke("shareWeibo", { content: a.isios ? b.content + b.link : b.content, url: b.link }, function () { }) } function g() { var a = window.shareData.share2Friend; WeixinJSBridge.invoke("shareTimeline", { img_url: a.img, img_width: "640", img_height: "640", link: a.link, desc: " ", title: a.title }, function () { }) } function h() { return "function" == typeof b ? b() : "" } var b, a = function () { var a = window.navigator.userAgent; return this.isAndroid = a.match(/(Android)\s+([\d.]+)/) || a.match(/Silk-Accelerated/) ? !0 : !1, this.isiPad = a.match(/iPad/) ? !0 : !1, this.isiPod = a.match(/(iPod).*OS\s([\d_]+)/) ? !0 : !1, this.isiPhone = !this.isiPad && a.match(/(iPhone\sOS)\s([\d_]+)/) ? !0 : !1, this.isios = this.isiPhone || this.isiPad || this.isiPod, this }(); window.shareData && document.addEventListener("WeixinJSBridgeReady", c, !1), window.setShareListener = function (a) { b = a } }();
    </script>
    <script src="/js/zepto.min.js"></script>
  
    <script type="text/javascript">
        function freshOrder(dataLists){
            let sum = 0;
            for(let data of dataLists){
                let price = formatPrice(data.product.price*data.productCounts);
                $li = $("<li class=\"list_item qb_mb10 qb_bfc\">" +
                    "<a href='productdetail?productId="+data.product.productId+"' class=\"bfc_f\">\n" +
                    "<img src='http://image.pq.com/"+data.product.imgUrl+"' width=\"100\" height=\"100\" alt=\"\"></a>" +
                    "<div class=\"bfc_c\">" +
                    "<p>"+data.product.title+"</p>" +
                    "<p class=\"qb_fs_s ui_color_weak\">数量: "+data.productCounts+"  价格：<strong class=\"mod_color_strong\">￥"+price+"元</strong> </p>" +
                    "</div>" +
                    " </li>");
                $(".mod_list").append($li);
                sum+=price;
            }
            $("#total-price").html("¥"+sum);
        };
        function getOrder(){
            let url = "/doFindOrderByOrderId";
            let params = {"orderId":$("#orderId").html()};
            $.post(url,params,function(result){
                freshOrder(result.data);
            })
        };
        getOrder();
    </script>
</body></html>